package org.lifei.base.service;

import org.lifei.base.query.BaseQuery;
import org.lifei.base.util.PageInfo;
import org.lifei.org.domain.Department;
import org.lifei.org.query.Departmentquery;

import java.io.Serializable;
import java.util.List;

public interface IBaseService<T> {
    void insert(T t);
    void delete(Serializable id);
    void update(T t);
    //批量删除
    void batchDelete(List<String> ids);
    T queryOne(Serializable id);
    List<T> queryAll();

    PageInfo<T> queryPage(BaseQuery baseQuery);
}
